<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<img src="a.jpg" alt="a">
<img src="b.jpg" alt="b">
<img src="c.jpg" alt="c">
<img src="D.jpg" alt="d">
<form id="a"></form>
<form id="b"></form>
<form id="c"></form>
<a name="aa"></a>
<a name="bb"></a>
<a name="cc"></a>
<a href="http://www.baidu.com">第一个</a>
<a href="http://www.baidu.com">第二个</a>
<a href="http://www.baidu.com">第三个</a>

<script>
    console.log(document.images);
    console.log(document.forms);
    console.log(document.anchors);
    console.log(document.links);
    console.log(document.all['a']);
    console.log(document.layers['a']);

</script>
</body>
</html>